package com.taobao.report.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.taobao.report.domain.Resource;
import com.taobao.report.mapper.ResourceMapper;
import com.taobao.report.service.inter.ResourceService;
@Service
public class ResourceServiceImpl implements ResourceService {

	@Autowired
	private ResourceMapper resourceMapper;
	@Override
	public Resource findById(Integer id) {
		List<Resource> resources = resourceMapper.selectAll();
		System.out.println(resources+"************************");
		return resourceMapper.selectByPrimaryKey(id);
	}

}
